Thermal simulations for integrated circuits